package com.longqin.business.service;

import com.longqin.business.entity.DesDiagram;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author longqin
 * @since 2024-11-22
 */
public interface IDesDiagramService extends IService<DesDiagram> {

	DesDiagram getById(int id);
	
	List<DesDiagram> getPage(String modelName, int organizationId, int startIndex, int pageSize);
	
	int getCount(String modelName, int organizationId);
	
    int delete(int id) throws Exception;
    
    int create(DesDiagram entity) throws Exception;
    
    int update(DesDiagram entity) throws Exception;
    
    List<DesDiagram> getByCreator(int creator);
    
    String getDiagramData(String dataSource, String column, int organizationId);
}
